package com.easy.service.impl;

import com.easy.bean.Station;
import com.easy.dao.IStationDao;
import com.easy.service.IStationService;
import com.easy.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StationServiceImpl implements IStationService {

    @Autowired
    IStationDao dao;

    @Override
    public int addStation(Station station) {
        return dao.addStation(station);
    }

    @Override
    public int delStation(int id) {
        return dao.delStation(id);
    }

    @Override
    public int editStation(Station station) {
        return dao.editStation(station);
    }

    @Override
    public Station getStationByID(int id) {
        return dao.getStationByID(id);
    }

    @Override
    public List<Station> getStation(Station station, Page page) {
        return dao.getStation(station,page);
    }

    @Override
    public int getCount(Station station) {
        return dao.getCount(station);
    }
}
